package lab02.test36;

 class Postgraduate extends Student {
     @Override
     String grade() {
         for (i = 0; i <= n*3-1; i++) {
             sum = sum + grade1[i];
             j = j + 1;
             while (j % 3 == 0) {
                 sum1 = sum / 3;
                 sum = 0;
                 break;
             }
         }
         if (sum1 >= 90) {
             return "优秀";
         }
         if (sum1 >= 80) {
             return "良好";
         }
         if (sum1 >= 70) {
             return "一般";
         }
         if (sum1 >= 60) {
             return "及格";
         }
         else
             return "不及格";
     }
 }
